<h2>Edit profile</h2>
<%= error_messages_for 'user' %>
<% form_tag(:action => 'update_profile') do %>
  <h3>Basics</h3>
  Nickname:
  <%= text_field 'user', 'nickname' %>
  <br /><br />

  First name:
  <%= text_field 'user', 'first_name' %>
  <br /><br />

  Last name:
  <%= text_field 'user', 'last_name' %>
  <br /><br />

  Gender:
  Male <%= radio_button 'user', 'gender', 'Male' %> Female <%= radio_button 'user', 'gender', 'Female' %>
  <br /><br />


  Birthday:
  <%= date_select 'user', 'birthday', :order => [:month, :day, :year], :start_year => Time.now.year-100, :end_year => Time.now.year  %></p>
  <br /><br />
  
  <h3>General</h3>
  About you:<br />
  <%= text_area 'user', 'about', :rows => 5 %><br /<br />

  <%= submit_tag "Update profile" %>
<% end %>
